package com.blb.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.entity.Warehouse;
import com.blb.mapper.WarehouseMapper;
import com.blb.service.IWarehouseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author wss
 * @since 2020-05-21
 */
@Transactional
@Service
public class WarehouseServiceImpl extends ServiceImpl<WarehouseMapper, Warehouse> implements IWarehouseService {


    @Resource
    private WarehouseMapper warehouseMapper;

    @Override
    public List<Warehouse> getPageList(Map<String, Object> map) {
        return warehouseMapper.getPageList(map);
    }

    @Override
    public List<Warehouse> listTree(Map<String,Object> map) {
        return warehouseMapper.listTree(map);
    }

    @Override
    public List<Warehouse> getProductByWarehouse(Map<String, Object> map) {
        return warehouseMapper.getProductByWarehouse(map);
    }

    @Override
    public int getPageCount(Map<String, Object> map) {
        return warehouseMapper.getPageCount(map);
    }

    @Override
    public int getPageCountByInventory(Map<String, Object> map) {
        return warehouseMapper.getPageCountByInventory(map);
    }

}
